#include <stdio.h>
char *
home_dir (void)
{
  char *home = getenv ("HOME");

  if (!home)
    {
	return NULL;
    }

  //  return home ? strdup (home) : NULL;
  return home;
}



int main(int argc,char **argv)
{
  printf("%s\n",home_dir());
  return 0;
}
